package com.roncoo.student.stu.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roncoo.student.stu.entity.Lecturer;
import com.roncoo.student.stu.entity.LecturerAudit;
import com.roncoo.student.stu.entity.OrderInfo;
import com.roncoo.student.stu.service.ILecturerAuditService;
import com.roncoo.student.stu.service.IOrderInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author jl
 * @since 2021-03-24
 */
@RestController
@RequestMapping("/stu/order-info")
public class OrderInfoController {

    @Resource
    private ILecturerAuditService lecturerAuditService;


    /*
    *
    * 根据教室id查询教室分润的数据
    * */
    @PostMapping("/select")
    public Page select(Lecturer lecturer, OrderInfo orderInfo, LecturerAudit lecturerAudit, Page page) {

        return lecturerAuditService.select(lecturer, orderInfo, lecturerAudit, page);


    }


}

